package com.gaofans.nrpc.common.serializer;

import com.gaofans.nrpc.common.exception.NRpcExceptionEnum;

/**
 * @author GaoFans
 */

public enum SerializerExceptionEnum implements NRpcExceptionEnum {
    SerializerException(101,"序列化失败"),
    DeSerializerException(102,"反序列化失败");

    SerializerExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;
    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
